Skip to content

Conversation

@zeitlinger
Copy link
Member

No description provided.

@zeitlinger zeitlinger self-assigned this Jan 9, 2026
@zeitlinger zeitlinger requested a review from a team as a code owner January 9, 2026 21:09
@zeitlinger zeitlinger force-pushed the otelbot/update-opentelemetry-sdk-to-1.58.0 branch from 7e2bdd1 to 4968924 Compare January 10, 2026 09:42
@zeitlinger zeitlinger added this to the v2.24.0 milestone Jan 10, 2026
@zeitlinger
Copy link
Member Author

@trask please have a look

* This class is internal and is hence not for public use. Its APIs are unstable and can change at
* any time.
*/
public final class ExtendedDeclarativeConfigProperties implements DeclarativeConfigProperties {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

ExtendedOpenTelemetry otel = mock(ExtendedOpenTelemetry.class);
ConfigProvider configProvider = mock(ConfigProvider.class);
ExtendedOpenTelemetry otel = spy(ExtendedOpenTelemetry.class);
ConfigProvider configProvider = spy(ConfigProvider.class);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what was reason for this change?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This enables the default method on both interfaces to be called

Comment on lines 139 to +141
.satisfiesExactlyInAnyOrder(
metric -> assertThat(metric).hasName("otel.sdk.span.started"),
metric -> assertThat(metric).hasName("otel.sdk.span.live"),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why doesn't this affect other metric tests? do they not use satisfies "exactly"? if not, we could do that here for consistency

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point - let me do that in a follow up PR

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just checked: all other metric tests also use satisfiesExactlyInAnyOrder - they just happen to not encounter this metric, because no span is created

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for checking. I think ok for now. if it becomes a problem in the future we can consider loosening the condition or automatically filtering out the sdk metrics

@trask trask merged commit 79edac7 into open-telemetry:main Jan 12, 2026
85 checks passed
@zeitlinger zeitlinger deleted the otelbot/update-opentelemetry-sdk-to-1.58.0 branch January 13, 2026 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants